<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>部门列表</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<link rel="stylesheet" href="/css/modules.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="/css/modules1.css" type="text/css"
			media="screen" />
		<!--Internet Explorer Trancparency fix-->
		<!--[if IE 6]>
    <script src="/js/ie6pngfix.js"></script>
    <script>
    DD_belatedPNG.fix('#head, a, a span, img, .message p, .click_to_close, .ie6fix');
    </script>
    <![endif]-->
		<script type='text/javascript' src="/js/jquery-1.4.2.min.js"></script>
		<script type='text/javascript' src="/js/jquery.js"></script>
		<script type='text/javascript' src="/js/jquery-ui.js"></script>
		<script type='text/javascript' src="/js/jquery.wysiwyg.js"></script>
		<script type='text/javascript' src="/js/custom.js"></script>
		<script type="text/javascript">

	//到指定的分页页面
	function topage(page){
		var form = document.forms[0];
		form.page.value=page;
		form.submit();
	}
</script>
		<script type="text/javascript" src="/js/FoshanRen.js"></script>
	</head>

	<body style="background-color: transparent">
		<h2 class="jquery_tab_title">
			部门列表
		</h2>
		<div style="padding-top:20px;">
			<s:form action="DepartmentManage" method="post">
				<s:hidden name="page" />
				<s:hidden name="query" />
				<s:hidden name="name" />
				<table width="98%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<th class="th_first">
							ID
						</th>
						<th>
							部门名称
						</th>
						<th>
							管理
						</th>
					</tr>
					<!---------------------------LOOP START------------------------------>
					<s:set name="pageView" value="#request.pageView.records"></s:set>
					
						<s:iterator value="#pageView">
						<s:if test="name!=''">
						<tr>
							<td class="td_first">
								<s:property value="id" />
							</td>
							<td>
								<s:property value="name" />
							</td>
							<td>
							<tee:permission privilege="update" module="department">
								<a
									href='<s:url action="DepartmentManage!editDepartment" />?departmentid=<s:property value='id'/>'>修改</a>
									</tee:permission>
							
							<tee:permission privilege="delete" module="department">
								<a
									href='<s:url action="DepartmentManage!deleteDepartment" />?departmentid=<s:property value='id'/>'
									onclick="return confirm('确定将此记录删除?')">删除</a>
							</tee:permission>
							
							</td>
							</tr></s:if>
						</s:iterator>

					
				</table>
			</s:form>
		</div>

		<div id="toolnav">
			<span style="float: left;">
			<tee:permission privilege="insert" module="department">
			<input type="button"
					class="button"
					onclick="javascript:window.location.href='<s:url action="DepartmentManage!addDepartment"/>'"
					value="添加新部门" />
			</tee:permission>		</span>
			<span style="float: right;"> <jsp:include
					page="/WEB-INF/page/share/fenye.jsp" /> </span>
			<div style="clear: both"></div>
		</div>
	</body>
</html>